package com.mjk.common.core.jdbc.service.idgenerator.impl;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.service.idgenerator.IdGenerator;

import java.util.UUID;

/**
 * uuid 生成规则
 */
public class UUIDGenerateImpl implements IdGenerator {

    @Override
    public String getId(BaseEntity entity) {
        return UUID.randomUUID().toString().replace("-", "");
    }
}
